<template>
  <rx-dialog @handOk="handleSubmit" @cancel="cancel">
    <a-form :form="form">
      <a-form-item style="display:none">
        <a-input v-decorator="['opId']"/>
      </a-form-item>
      <a-row>
        <a-col :span="24">
          <a-form-item :labelCol="labelCol1" :wrapperCol="wrapperCol1" :label="i18n('form.opinion','审批意见')">
            <a-textarea :placeholder="i18n('form.opinion','审批意见')" :rows="20" v-decorator="['opText', {rules: [{required: true, message: i18n('form.opinion','审批意见','input')}]}]"/>
          </a-form-item>
        </a-col>
      </a-row>
    </a-form>
  </rx-dialog>
</template>
<script>
  import BpmOpinionLibApi from '@/api/bpm/core/bpmOpinionLib'
  import {BaseForm,RxDialog} from '@lowcode/jpaas-common-lib';
  export default {
    name: 'BpmOpinionLibEdit',
    mixins:[BaseForm],
    components: {
      RxDialog,
    },
    methods: {
        i18n(name, text, key) {
            return this.$ti18(name, text, "BpmOpinionLib", key);
        },
      get(id){
        return BpmOpinionLibApi.get(id);
      },
      save(values){
        return BpmOpinionLibApi.save(values);
      }

    }
  }
</script>
